#ifndef __QGAMENETWORK_H__
#define __QGAMENETWORK_H__

#include <string>

#include "curl/curl.h"
#include "QGameRequestParam.h"
#include "QGameStatReport.h"
using namespace std;
typedef size_t (*write_datafunc)(char *buffer, size_t size, size_t nmemb, void *userp);
class QGameNetwork
{
public:
	QGameNetwork();
	~QGameNetwork();
public:
	 int makeRequest(string url, string querystring,write_datafunc func, char* userdata);
	 int makeRequestUrl(string url, write_datafunc func, char* userdata);

	 void setmethod(string method);
	 void setprotocol(string protocol);
	 
private:
	string method;
	string protocol;
	
};

#endif//__QGAMENETWORK_H__